package FourShTests;




import Rout.*;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.testng.annotations.*;

public class Shared4FooterBar {
    private GoBefore browser = new GoBefore();
//    private RemoteControl browser;
    
    
    
    @BeforeMethod
    public void setUp() throws Exception {
        
        
//for local GoBefore();
        System.out.println("\n Run test: " + getClass().getSimpleName());        
        browser.setCurURL("http://www.4shared.com/photo/jIP-_j8sce/Test_file.html");
        browser.setRepDir(getClass().getSimpleName());     
    }
       

@Test //Void Footer Baner
    public void Footer() throws Exception {
        
        
        browser.setXpFilename("/html/body/div[7]/div/div/div[2]/h1");
        browser.setClButton("fbd-banner");
        browser.setCssButton("#footerBarDivda991340 > div.footerBarDiv-in > div.fbd-content > div.fbd-banner > a > img");
        browser.setLinkButton("");
        browser.setXpButton("//*[@id=\"footerBarDivda991340\"]/div[2]/div[2]/div[2]/a/img");
        
        
        browser.setUp();
        browser.getClicker().sendKeys(Keys.PAGE_DOWN).perform();
        browser.testRun();
        Thread.sleep(2000);
        browser.lpDetect();
        
        browser.verFilePresent();
        browser.verFilename();

    }
    
  
    @AfterMethod
    public void Down() throws Exception {
        browser.getDriver().quit();
        
    }

    
}
